// 账号管理
export const AccountCode = {
    BTN_ADD: "auth-account:btn_add", //新增
    BTN_EDIT: "auth-account:btn_edit", //编辑
    BTN_DEL: "auth-account:btn_delete", //删除
    BTN_ALL_DEL: "auth-account:btn_all_delete",//批量删除
    BTN_STATUS: "auth-account:btn_status",//状态修改
    BTN_MENU_EDIT: "auth-account:btn_menu_edit",
    BTN_MENU_DEL: "auth-account:btn_menu_delete",
    BTN_ADD_MENU_CLASSIFY: "auth-account:btn_add_menu_classify",
    BTN_ADD_MENU_CHILD_CLASSIFY: "auth-account:btn_add_menu_child_classify",
};
// 人员授权
export const EmpowerCode = {
    BTN_ADD: "auth-empower:btn_add", //新增
    BTN_EDIT: "auth-empower:btn_edit", //编辑
    BTN_DEL: "auth-empower:btn_delete", //删除
    BTN_ALL_DEL: "auth-empower:btn_all_delete",//批量删除
};
// 岗位管理
export const PositionCode = {
    BTN_ADD: "auth-position:btn_add", //新增
    BTN_EDIT: "auth-position:btn_edit", //编辑
    BTN_DEL: "auth-position:btn_delete", //删除
    BTN_ALL_DEL: "auth-position:btn_all_delete",//批量删除
    BTN_MENU_EDIT: "auth-position:btn_menu_edit",
    BTN_MENU_DEL: "auth-position:btn_menu_delete",
    BTN_ADD_MENU_CLASSIFY: "auth-position:btn_add_menu_classify",
    BTN_ADD_MENU_CHILD_CLASSIFY: "auth-position:btn_add_menu_child_classify",
};
// 人员授权
export const RoleCode = {
    BTN_ADD: "auth-role:btn_add", //新增
    BTN_EDIT: "auth-role:btn_edit", //编辑
    BTN_DEL: "auth-role:btn_delete", //删除
    BTN_ALL_DEL: "auth-role:btn_all_delete",//批量删除
    BTN_STATUS: "auth-role:btn_status",//状态修改
    BTN_MENU_EDIT: "auth-role:btn_menu_edit",
    BTN_MENU_DEL: "auth-role:btn_menu_delete",
    BTN_ADD_MENU_CLASSIFY: "auth-role:btn_add_menu_classify",
    BTN_ADD_MENU_CHILD_CLASSIFY: "auth-role:btn_add_menu_child_classify",
};
// 菜单管理
export const MenuCode = {
    BTN_ADD: "auth-menu:btn_add", //新增
    BTN_EDIT: "auth-menu:btn_edit", //编辑
    BTN_DEL: "auth-menu:btn_delete", //删除
    BTN_AUTH: "auth-menu:btn_auth",//授权
    BTN_AUTH_STATUS: "auth-menu:btn_auth_status",//授权状态修改
    BTN_ADD_AUTH: "auth-menu:btn_add_auth",
    BTN_ADD_ALL_AUTH: "auth-menu:btn_add_all_auth",
    BTN_EDIT_AUTH: "auth-menu:btn_edit_auth",
    BTN_DEL_AUTH: "auth-menu:btn_delete_auth",
};
// key命名规则：项目名-路径名_路径名2(与菜单编码规则一致)
export const PageCode: Record<string, { label: string, value: string; }[]> = {
    "auth-account": [{ label: "账号新增", value: AccountCode["BTN_ADD"] }, { label: "账号编辑", value: AccountCode["BTN_EDIT"] }, { label: "账号删除", value: AccountCode["BTN_DEL"] }, { label: "账号批量删除", value: AccountCode["BTN_ALL_DEL"] }, { label: "账号状态修改", value: AccountCode["BTN_STATUS"] }, { label: "菜单编辑", value: AccountCode["BTN_MENU_EDIT"] }, { label: "菜单删除", value: AccountCode["BTN_MENU_DEL"] }, { label: "菜单添加类别", value: AccountCode["BTN_ADD_MENU_CLASSIFY"] }, { label: "菜单添加子类别", value: AccountCode["BTN_ADD_MENU_CHILD_CLASSIFY"] }],
    "auth-empower": [{ label: "人员新增", value: EmpowerCode["BTN_ADD"] }, { label: "人员编辑", value: EmpowerCode["BTN_EDIT"] }, { label: "人员删除", value: EmpowerCode["BTN_DEL"] }, { label: "人员批量删除", value: EmpowerCode["BTN_ALL_DEL"] }],
    "auth-position": [{ label: "岗位新增", value: PositionCode["BTN_ADD"] }, { label: "岗位编辑", value: PositionCode["BTN_EDIT"] }, { label: "岗位删除", value: PositionCode["BTN_DEL"] }, { label: "岗位批量删除", value: PositionCode["BTN_ALL_DEL"] }, { label: "菜单编辑", value: PositionCode["BTN_MENU_EDIT"] }, { label: "菜单删除", value: PositionCode["BTN_MENU_DEL"] }, { label: "菜单添加类别", value: PositionCode["BTN_ADD_MENU_CLASSIFY"] }, { label: "菜单添加子类别", value: PositionCode["BTN_ADD_MENU_CHILD_CLASSIFY"] }],
    "auth-role": [{ label: "角色新增", value: RoleCode["BTN_ADD"] }, { label: "角色编辑", value: RoleCode["BTN_EDIT"] }, { label: "角色删除", value: RoleCode["BTN_DEL"] }, { label: "角色批量删除", value: RoleCode["BTN_ALL_DEL"] }, { label: "角色状态修改", value: RoleCode["BTN_STATUS"] }, { label: "菜单编辑", value: RoleCode["BTN_MENU_EDIT"] }, { label: "菜单删除", value: RoleCode["BTN_MENU_DEL"] }, { label: "菜单添加类别", value: RoleCode["BTN_ADD_MENU_CLASSIFY"] }, { label: "菜单添加子类别", value: RoleCode["BTN_ADD_MENU_CHILD_CLASSIFY"] }],
    "auth-menu": [{ label: "菜单新增", value: MenuCode["BTN_ADD"] }, { label: "一键新增", value: MenuCode["BTN_ADD_ALL_AUTH"] }, { label: "菜单编辑", value: MenuCode["BTN_EDIT"] }, { label: "菜单删除", value: MenuCode["BTN_DEL"] }, { label: "按钮授权", value: MenuCode["BTN_AUTH"] }, { label: "授权状态修改", value: MenuCode["BTN_AUTH_STATUS"] }, { label: "授权按钮新增", value: MenuCode["BTN_ADD_AUTH"] }, { label: "授权按钮编辑", value: MenuCode["BTN_EDIT_AUTH"] }, { label: "授权按钮删除", value: MenuCode["BTN_DEL_AUTH"] }],
    // 车间管理  /basicConfig/workshopManagement
    "mes-system_basicConfig_workshopManagement": [
        { label: "类别编辑", value: "mes-system_basicConfig_workshopManagement:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_basicConfig_workshopManagement:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_basicConfig_workshopManagement:btn_categoryDel" },
        { label: "新增", value: "mes-system_basicConfig_workshopManagement:btn_add" },
        { label: "批量删除", value: "mes-system_basicConfig_workshopManagement:btn_batchDel" },
        { label: "查询", value: "mes-system_basicConfig_workshopManagement:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_workshopManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_workshopManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_workshopManagement:btn_conditionFilter" },
        { label: "详情", value: "mes-system_basicConfig_workshopManagement:btn_details" },
        { label: "编辑", value: "mes-system_basicConfig_workshopManagement:btn_edit" },
        { label: "删除", value: "mes-system_basicConfig_workshopManagement:btn_del" },
    ],
    // 产线管理     /basicConfig/productionlineManagement
    "mes-system_basicConfig_productionlineManagement": [
        { label: "类别编辑", value: "mes-system_basicConfig_productionlineManagement:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_basicConfig_productionlineManagement:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_basicConfig_productionlineManagement:btn_categoryDel" },
        { label: "新增", value: "mes-system_basicConfig_productionlineManagement:btn_add" },
        { label: "批量删除", value: "mes-system_basicConfig_productionlineManagement:btn_batchDel" },
        { label: "查询", value: "mes-system_basicConfig_productionlineManagement:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_productionlineManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_productionlineManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_productionlineManagement:btn_conditionFilter" },
        { label: "详情", value: "mes-system_basicConfig_productionlineManagement:btn_details" },
        { label: "编辑", value: "mes-system_basicConfig_productionlineManagement:btn_edit" },
        { label: "删除", value: "mes-system_basicConfig_productionlineManagement:btn_del" },
        { label: "工位配置", value: "mes-system_basicConfig_productionlineManagement:btn_stationConfig" },
    ],
    // 班组管理     /basicConfig/teamManagement
    "mes-system_basicConfig_teamManagement": [
        { label: "类别编辑", value: "mes-system_basicConfig_teamManagement:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_basicConfig_teamManagement:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_basicConfig_teamManagement:btn_categoryDel" },
        { label: "新增", value: "mes-system_basicConfig_teamManagement:btn_add" },
        { label: "批量删除", value: "mes-system_basicConfig_teamManagement:btn_batchDel" },
        { label: "查询", value: "mes-system_basicConfig_teamManagement:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_teamManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_teamManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_teamManagement:btn_conditionFilter" },
        { label: "详情", value: "mes-system_basicConfig_teamManagement:btn_details" },
        { label: "编辑", value: "mes-system_basicConfig_teamManagement:btn_edit" },
        { label: "删除", value: "mes-system_basicConfig_teamManagement:btn_del" },
        { label: "人员配置", value: "mes-system_basicConfig_teamManagement:btn_personnelConfig" },
    ],
    // 班次管理     /basicConfig/shiftManagement
    "mes-system_basicConfig_shiftManagement": [
        { label: "类别编辑", value: "mes-system_basicConfig_shiftManagement:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_basicConfig_shiftManagement:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_basicConfig_shiftManagement:btn_categoryDel" },
        { label: "新增", value: "mes-system_basicConfig_shiftManagement:btn_add" },
        { label: "批量删除", value: "mes-system_basicConfig_shiftManagement:btn_batchDel" },
        { label: "查询", value: "mes-system_basicConfig_shiftManagement:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_shiftManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_shiftManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_shiftManagement:btn_conditionFilter" },
        { label: "详情", value: "mes-system_basicConfig_shiftManagement:btn_details" },
        { label: "编辑", value: "mes-system_basicConfig_shiftManagement:btn_edit" },
        { label: "删除", value: "mes-system_basicConfig_shiftManagement:btn_del" },
    ],
    // 物料数据     /basicConfig/materialData
    "mes-system_basicConfig_materialData": [
        { label: "查询", value: "mes-system_basicConfig_materialData:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_materialData:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_materialData:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_materialData:btn_conditionFilter" },
    ],
    // BOM数据      /basicConfig/bomData
    "mes-system_basicConfig_bomData": [
        { label: "查询", value: "mes-system_basicConfig_bomData:btn_query" },
        { label: "重置", value: "mes-system_basicConfig_bomData:btn_reset" },
        { label: "刷新列表", value: "mes-system_basicConfig_bomData:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_basicConfig_bomData:btn_conditionFilter" },
        { label: "BOM明细", value: "mes-system_basicConfig_bomData:btn_bomDetails" },
    ],
    // 条码规则     /barcodeManagement/barcodeRules
    "mes-system_barcodeManagement_barcodeRules": [
        { label: "类别编辑", value: "mes-system_barcodeManagement_barcodeRules:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_barcodeManagement_barcodeRules:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_barcodeManagement_barcodeRules:btn_categoryDel" },
        { label: "新增", value: "mes-system_barcodeManagement_barcodeRules:btn_add" },
        { label: "批量删除", value: "mes-system_barcodeManagement_barcodeRules:btn_batchDel" },
        { label: "查询", value: "mes-system_barcodeManagement_barcodeRules:btn_query" },
        { label: "重置", value: "mes-system_barcodeManagement_barcodeRules:btn_reset" },
        { label: "刷新列表", value: "mes-system_barcodeManagement_barcodeRules:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_barcodeManagement_barcodeRules:btn_conditionFilter" },
        { label: "详情", value: "mes-system_barcodeManagement_barcodeRules:btn_details" },
        { label: "编辑", value: "mes-system_barcodeManagement_barcodeRules:btn_edit" },
        { label: "删除", value: "mes-system_barcodeManagement_barcodeRules:btn_del" },
    ],
    // 标签模板     /barcodeManagement/labelTemplate
    "mes-system_barcodeManagement_labelTemplate": [
        { label: "类别编辑", value: "mes-system_barcodeManagement_labelTemplate:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_barcodeManagement_labelTemplate:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_barcodeManagement_labelTemplate:btn_categoryDel" },
        { label: "新增", value: "mes-system_barcodeManagement_labelTemplate:btn_add" },
        { label: "批量删除", value: "mes-system_barcodeManagement_labelTemplate:btn_batchDel" },
        { label: "查询", value: "mes-system_barcodeManagement_labelTemplate:btn_query" },
        { label: "重置", value: "mes-system_barcodeManagement_labelTemplate:btn_reset" },
        { label: "刷新列表", value: "mes-system_barcodeManagement_labelTemplate:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_barcodeManagement_labelTemplate:btn_conditionFilter" },
        { label: "详情", value: "mes-system_barcodeManagement_labelTemplate:btn_details" },
        { label: "编辑", value: "mes-system_barcodeManagement_labelTemplate:btn_edit" },
        { label: "删除", value: "mes-system_barcodeManagement_labelTemplate:btn_del" },
    ],
    // 条码打印     /barcodeManagement/barcodePrinting
    "mes-system_barcodeManagement_barcodePrinting": [
        { label: "新增", value: "mes-system_barcodeManagement_barcodePrinting:btn_add" },
        { label: "批量删除", value: "mes-system_barcodeManagement_barcodePrinting:btn_batchDel" },
        { label: "查询", value: "mes-system_barcodeManagement_barcodePrinting:btn_query" },
        { label: "重置", value: "mes-system_barcodeManagement_barcodePrinting:btn_reset" },
        { label: "刷新列表", value: "mes-system_barcodeManagement_barcodePrinting:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_barcodeManagement_barcodePrinting:btn_conditionFilter" },
        { label: "详情", value: "mes-system_barcodeManagement_barcodePrinting:btn_details" },
        { label: "编辑", value: "mes-system_barcodeManagement_barcodePrinting:btn_edit" },
        { label: "删除", value: "mes-system_barcodeManagement_barcodePrinting:btn_del" },
        { label: "条码明细", value: "mes-system_barcodeManagement_barcodePrinting:btn_barcodeDetails" },
        { label: "打印", value: "mes-system_barcodeManagement_barcodePrinting:btn_printing" },
        { label: "重打", value: "mes-system_barcodeManagement_barcodePrinting:btn_reboot" },
    ],
    // 工序配置     /processManagement/processConfig
    "mes-system_processManagement_processConfig": [
        { label: "新增", value: "mes-system_processManagement_processConfig:btn_add" },
        { label: "批量删除", value: "mes-system_processManagement_processConfig:btn_batchDel" },
        { label: "查询", value: "mes-system_processManagement_processConfig:btn_query" },
        { label: "重置", value: "mes-system_processManagement_processConfig:btn_reset" },
        { label: "刷新列表", value: "mes-system_processManagement_processConfig:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_processManagement_processConfig:btn_conditionFilter" },
        { label: "详情", value: "mes-system_processManagement_processConfig:btn_details" },
        { label: "编辑", value: "mes-system_processManagement_processConfig:btn_edit" },
        { label: "删除", value: "mes-system_processManagement_processConfig:btn_del" },
    ],
    // 产品工艺     /processManagement/productProcess
    "mes-system_processManagement_productProcess": [
        { label: "类别编辑", value: "mes-system_processManagement_productProcess:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_processManagement_productProcess:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_processManagement_productProcess:btn_categoryDel" },
        { label: "新增", value: "mes-system_processManagement_productProcess:btn_add" },
        { label: "批量删除", value: "mes-system_processManagement_productProcess:btn_batchDel" },
        { label: "查询", value: "mes-system_processManagement_productProcess:btn_query" },
        { label: "重置", value: "mes-system_processManagement_productProcess:btn_reset" },
        { label: "刷新列表", value: "mes-system_processManagement_productProcess:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_processManagement_productProcess:btn_conditionFilter" },
        { label: "详情", value: "mes-system_processManagement_productProcess:btn_details" },
        { label: "编辑", value: "mes-system_processManagement_productProcess:btn_edit" },
        { label: "删除", value: "mes-system_processManagement_productProcess:btn_del" },
    ],
    // 工单管理     /productionManagement/workOrderManagement
    "mes-system_productionManagement_workOrderManagement": [
        { label: "查询", value: "mes-system_productionManagement_workOrderManagement:btn_query" },
        { label: "重置", value: "mes-system_productionManagement_workOrderManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_productionManagement_workOrderManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_productionManagement_workOrderManagement:btn_conditionFilter" },
        { label: "工单拆分", value: "mes-system_productionManagement_workOrderManagement:btn_workOrderSplit" },
        { label: "删除", value: "mes-system_productionManagement_workOrderManagement:btn_del" },
        { label: "关联工艺路线", value: "mes-system_productionManagement_workOrderManagement:btn_associatedProcessRoute" },
        { label: "派工", value: "mes-system_productionManagement_workOrderManagement:btn_dispatchWorkers" },
        { label: "撤回", value: "mes-system_productionManagement_workOrderManagement:btn_withdraw" },
        { label: "完工", value: "mes-system_productionManagement_workOrderManagement:btn_completion" },
        { label: "锁定", value: "mes-system_productionManagement_workOrderManagement:btn_lock" },
        { label: "解锁", value: "mes-system_productionManagement_workOrderManagement:btn_unlock" },
    ],
    // 工站作业     /productionManagement/stationOperations
    "mes-system_productionManagement_stationOperations": [
        { label: "选择工单号", value: "mes-system_productionManagement_stationOperations:btn_selectWorkOrderNumber" },
        { label: "退出登录", value: "mes-system_productionManagement_stationOperations:btn_logout" },
    ],
    // 工站详情     /productionManagement/stationDetails
    "mes-system_productionManagement_stationDetails": [
        { label: "下线", value: "mes-system_productionManagement_stationDetails:btn_offline" },
        { label: "撤回", value: "mes-system_productionManagement_stationDetails:btn_withdraw" },
        { label: "过站", value: "mes-system_productionManagement_stationDetails:btn_passStation" },
    ],
    // 过站记录     /productionManagement/transitRecord
    "mes-system_productionManagement_transitRecord": [
        { label: "查询", value: "mes-system_productionManagement_transitRecord:btn_query" },
        { label: "重置", value: "mes-system_productionManagement_transitRecord:btn_reset" },
        { label: "刷新列表", value: "mes-system_productionManagement_transitRecord:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_productionManagement_transitRecord:btn_conditionFilter" },
        { label: "导出", value: "mes-system_productionManagement_transitRecord:btn_export" },
    ],
    // 不良品管理   /productionManagement/defectiveProductManagement
    "mes-system_productionManagement_defectiveProductManagement": [
        { label: "类别编辑", value: "mes-system_productionManagement_defectiveProductManagement:btn_categoryEdit" },
        { label: "类别添加子类别", value: "mes-system_productionManagement_defectiveProductManagement:btn_categoryAdd" },
        { label: "类别删除", value: "mes-system_productionManagement_defectiveProductManagement:btn_categoryDel" },
        { label: "查询", value: "mes-system_productionManagement_defectiveProductManagement:btn_query" },
        { label: "重置", value: "mes-system_productionManagement_defectiveProductManagement:btn_reset" },
        { label: "刷新列表", value: "mes-system_productionManagement_defectiveProductManagement:btn_refreshList" },
        { label: "条件筛选", value: "mes-system_productionManagement_defectiveProductManagement:btn_conditionFilter" },
        { label: "导出", value: "mes-system_productionManagement_defectiveProductManagement:btn_export" },
    ],
};
